package com.service.business.merchant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.service.business.merchant.controller.rep.CommodityDetailRep;
import com.service.business.merchant.controller.rep.CommodityPageRep;
import com.service.business.merchant.controller.req.CommoditySaveReq;
import com.service.business.merchant.controller.req.CommodityUpdateReq;
import com.service.core.rest.request.PageRequest;
import com.service.core.rest.response.CommonPageRep;
import com.service.dao.enums.MerchantCommodityEnum;
import com.service.dao.model.MerchantCommodity;


/**
 * 商家商品信息
 *
 * @author xxxx
 * @email xxxx@qq.com
 * @date 2020-03-28 12:54:56
 */
public interface MerchantCommodityService extends IService<MerchantCommodity> {

    CommonPageRep<CommodityPageRep> page(String merchantNo, PageRequest pageRequest);

    void addCommodity(CommoditySaveReq saveReq);

    void updateCommodity(String commodityNo, CommodityUpdateReq updateReq);

    CommodityDetailRep detail(String commodityNo);

    MerchantCommodity getByCommodityNo(String commodityNo);

    MerchantCommodity getByCommodityNoAndStatus(String commodityNo);

    void updateStatus(String commodityNo, MerchantCommodityEnum.Status status);

}

